
io=$( mysql -uroot -pCyj777..  -e "show slave status\G" 2>/dev/null | grep  Slave_IO_Running: | awk '{print $2}')
mysql=$( mysql -uroot -pCyj777.. -e "show slave status\G" 2>/dev/null | grep  Slave_SQL_Running: | awk '{print $2}')

if [ $io == Yes ] ; then
   echo "IO：1"
else
   echo "IO：0"
fi
if [ $mysql == Yes ] ; then
   echo "MYSQL：1"
else
   echo "MYSQL:0"
fi
